#pragma once

#include "../umlmodel_global.h"

#include "UMLCompartmentableShape.h"

namespace uml {
class Classifier;

/// <summary>
/// UMLClassifierShape
/// Shows Classifiers with shapes that may have compartments.
/// </summary>
class UMLMODEL_EXPORT UMLClassifierShape : public UMLCompartmentableShape {

public: // Constructors and destructors
    explicit UMLClassifierShape(const QString& umlType="uml::UMLClassifierShape");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// modelElement getter
    /// Restricts UMLClassifierShapes to showing exactly one Classifier.
    /// </summary>
    shared_ptr<Classifier> modelElement() const;

    /// <summary>
    /// modelElement setter
    /// Restricts UMLClassifierShapes to showing exactly one Classifier.
    /// </summary>
    void setModelElement(shared_ptr<Classifier> value);

    /// <summary>
    /// isIndentForVisibility getter
    /// For modelElements that are shown with feature compartments, indicates whether
    /// features are shown indented under visibility headings.
    /// </summary>
    bool isIndentForVisibility() const;

    /// <summary>
    /// isIndentForVisibility setter
    /// For modelElements that are shown with feature compartments, indicates whether
    /// features are shown indented under visibility headings.
    /// </summary>
    void setIsIndentForVisibility(bool value);

    /// <summary>
    /// isDoubleSided getter
    /// For modelElements that are Classes with true as a value for isActive that are
    /// shown as rectangles, indicates whether the vertical sides shall be rendered as
    /// double lines.
    /// </summary>
    bool isDoubleSided() const;

    /// <summary>
    /// isDoubleSided setter
    /// For modelElements that are Classes with true as a value for isActive that are
    /// shown as rectangles, indicates whether the vertical sides shall be rendered as
    /// double lines.
    /// </summary>
    void setIsDoubleSided(bool value);

private: // Fields
    /// <summary>
    /// modelElement
    /// Restricts UMLClassifierShapes to showing exactly one Classifier.
    /// </summary>
    shared_ptr<Classifier> modelElement_;

    /// <summary>
    /// isIndentForVisibility
    /// For modelElements that are shown with feature compartments, indicates whether
    /// features are shown indented under visibility headings.
    /// </summary>
    const static bool isIndentForVisibility_default_;
    bool isIndentForVisibility_= isIndentForVisibility_default_;

    /// <summary>
    /// isDoubleSided
    /// For modelElements that are Classes with true as a value for isActive that are
    /// shown as rectangles, indicates whether the vertical sides shall be rendered as
    /// double lines.
    /// </summary>
    const static bool isDoubleSided_default_;
    bool isDoubleSided_= isDoubleSided_default_;

};

} // namespace uml
